import { stringify } from 'qs';
import request from '@/utils/request';

export async function GetPayConfig(params) {
    return request(`/${window.storeId}/Pay/GetPayConfig?${stringify(params)}`);
}
export async function SetPayConfig(params) {
    return request(`/${window.storeId}/Pay/SetPayConfig`, {
        method: 'POST',
        body: {
            ...params,
        },
    });
}

export async function GetStorePrincipalInfo(params) {
    return request(`/${window.storeId}/Wechat/GetStorePrincipalInfo`, {
        method: 'POST',
        body: {
            ...params,
        },
    });
}